﻿using HardcoreGame.Content.Items.Weapons.Ranged.Shuriken;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.ModLoader;

namespace HardcoreGame.Common.Players
{
    public class FishingPlayer : ModPlayer
    {
        public override void CatchFish(FishingAttempt attempt, ref int itemDrop, ref int npcSpawn, ref AdvancedPopupRequest sonar, ref Vector2 sonarPosition)
        {
            if (Main.rand.NextBool(35))
            {
                itemDrop = ModContent.ItemType<SeaStarShuriken>();
            }
        }
        public override void ModifyCaughtFish(Item fish)
        {
            if (fish.type == ModContent.ItemType<SeaStarShuriken>())
            {
                fish.stack = Main.rand.Next(45, 60);
            }
        }
    }
}
